package vista;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JWindow;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class MenuReportes extends javax.swing.JFrame {
	private JPanel panMenuReportes;
	private JButton btnListadoingreusado;
	private JButton btnReporteCantidadDispo;
	private JButton btnReporteventadeprod;
	private JLabel jLabel1;

	/**
	* Auto-generated main method to display this JFrame
	*/
	
	public MenuReportes() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setBackground(new java.awt.Color(0,0,0));
			getContentPane().setLayout(null);
			{
				panMenuReportes = new JPanel();
				getContentPane().add(panMenuReportes);
				panMenuReportes.setLayout(null);
				panMenuReportes.setBounds(44, 76, 293, 111);
				panMenuReportes.setBackground(new java.awt.Color(150,182,35));
				{
					btnReporteCantidadDispo = new JButton();
					panMenuReportes.add(btnReporteCantidadDispo);
					btnReporteCantidadDispo.setText("Cantidad Disponible");
					btnReporteCantidadDispo.setBounds(22, 44, 235, 21);
					btnReporteCantidadDispo.setBackground(new java.awt.Color(255,255,255));
					btnReporteCantidadDispo.setActionCommand("CantidadDisponible");
				}
				{
					btnListadoingreusado = new JButton();
					panMenuReportes.add(btnListadoingreusado);
					btnListadoingreusado.setText("Ingredientes más Usados");
					btnListadoingreusado.setBounds(22, 76, 235, 24);
					btnListadoingreusado.setBackground(new java.awt.Color(255,255,255));
					btnListadoingreusado.setActionCommand("IngredientesMasUsados");

					}
				{
					btnReporteventadeprod = new JButton();
					panMenuReportes.add(btnReporteventadeprod);
					btnReporteventadeprod.setText("Venta de Productos");
					btnReporteventadeprod.setBounds(22, 12, 235, 21);
					btnReporteventadeprod.setBackground(new java.awt.Color(255,255,255));
					btnReporteventadeprod.setActionCommand("VentaProductos");

			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setText("Menú Reportes");
				jLabel1.setBounds(33, 7, 302, 67);
				jLabel1.setForeground(new java.awt.Color(255,255,255));
				jLabel1.setFont(new java.awt.Font("Purisa",1,24));
				jLabel1.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/Reporteblack.jpg")));
			}
			}
			pack();
			this.setSize(374, 235);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
		
	public void addListener(ActionListener actionListener){
		this.btnReporteventadeprod.addActionListener(actionListener);
		this.btnReporteCantidadDispo.addActionListener(actionListener);
		this.btnListadoingreusado.addActionListener(actionListener);
	}

}
